let microConfig = {
  info: { order: 0, name: 'main', entry: '/', build: { noChunks: true } },
  routerBase: '/SMDC/',
  variable: {
    versions: '1.0.0.202206291743',
    apiHostName: '10.10.22.39',
    apiHost: '//${{apiHostName}}:9003'
  },
  // remoteMicroApps: [
  //   {
  //     host: '//${{apiHostName}}:30666',
  //     routerBase: '/IIOT/',
  //     config: 'config/microApp.js'
  //   }
  // ],
  microApps: [
    {
      order: 198,
      dependencies: ['main'],
      name: 'my-login',
      entry: '/app/my-login/',
      container: { id: 'microLogin', parentNode: 'body' },
      activeRule: ['/', '/login'],
      developer: 'vue2.x',
      precondition: ['userInfo'],
      globalState: { userInfo: null },
      disableRemote: true,
      build: { noChunks: true }
    },
    {
      order: 199,
      dependencies: ['main'],
      name: 'my-layout',
      defaultActive: true,
      entry: '/app//my-layout/',
      container: '#microBase',
      activeRule: '/',
      developer: 'html',
      disableRemote: true,
      build: { type: 'copy', noChunks: true }
    },
    {
      order: 200,
      dependencies: ['my-layout'],
      name: 'my-header',
      entry: '/app/my-header/',
      container: '#microHeader',
      activeRule: '/',
      developer: 'vue2.x',
      disableRemote: true,
      build: { noChunks: true }
    },
    {
      order: 201,
      dependencies: ['my-layout'],
      name: 'my',
      entry: '/app/my/',
      container: '#microApp',
      activeRule: '/',
      disableRemote: true,
      developer: 'vue2.x'
    },
    // {
    //   order: 202,
    //   dependencies: ['my'],
    //   name: 'my-permission',
    //   entry: '/app/my-permission/',
    //   container: '#applicationContent',
    //   activeRule: '/permission',
    //   developer: 'vue2.x',
    //   menu: [
    //     {
    //       label: '权限中心',
    //       name: 'permission.manage',
    //       path: 'permission',
    //       icon: '/dependencies/image/menu/permission.svg',
    //       activeUrl: '/'
    //     },
    //     {
    //       label: '用户管理',
    //       name: 'user',
    //       parent: 'permission.manage',
    //       path: 'user'
    //     },
    //     {
    //       label: '权限管理',
    //       name: 'authority',
    //       parent: 'permission.manage',
    //       path: 'authority'
    //     }
    //   ],
    //   build: { noChunks: true }
    // },
    {
      order: 203,
      dependencies: ['my'],
      name: 'my-device',
      entry: '/app/my-device/',
      container: '#applicationContent',
      activeRule: '/device',
      developer: 'vue2.x',
      menu: [
        {
          label: '设备状态',
          name: 'device',
          path: 'device',
          icon: '/dependencies/image/menu/device.svg',
          activeUrl: '/'
        }
      ],
      disableRemote: true,
      build: { noChunks: true }
    },
    {
      order: 204,
      dependencies: ['my'],
      name: 'my-serviceNode',
      entry: '/app/my-serviceNode/',
      container: '#applicationContent',
      activeRule: '/serviceNode',
      developer: 'vue2.x',
      prot: '30688',
      menu: [
        {
          label: '服务节点状态',
          name: 'serviceNode',
          path: 'serviceNode',
          icon: '/dependencies/image/menu/node.svg',
          activeUrl: '/'
        }
      ],
      disableRemote: true,
      build: { noChunks: true }
    }
  ]
};
if (!this.document) {
  module.exports = microConfig;
}
